<!DOCTYPE html>
<html>
    <head>
        <title>判断obj是否是Type类型的实例 - myInstanceOf的实现</title>
        <script src="../../src/object/InstanceOf.js"></script>
    </head>
    <body>
        <script>

            function Person(name, age) {
                this.name = name
                this.age = age
            }

            const person = new Person('张三', 18)
            console.log(InstanceOf(person, Person)) // true
            console.log(InstanceOf(person, Object)) // true
            console.log(InstanceOf(person, Array)) // false
        </script>
</html>